//搜索
$('.searchA').on('click',function(){
	var xuqiu = $(this).parent().find('.xuqiuInput').val();//需求值
	var leimuSelect = $(this).parent().find('#leimuSelect').find('option:checked');//选中的类目
	window.location.href = $(this).attr('link') + "?keyWord=" + xuqiu +"&type=" + leimuSelect.attr('value');
})
//操作


//分页

//var tableHeight=$(".littleCr").height();
//alert(tableHeight);
//$(".littleCl").height(tableHeight);
//$(".littleCc").height(tableHeight);
 var pageCount=$(".pageCount").val();
    $(".tcdPageCode").createPage({
        pageCount:pageCount,
        current:$('.pageNo').val(),
        backFn:function(p){
//            var companyNameVar = $(".companyName").val();
//			if(companyNameVar!=null){
//				companyNameVar = encodeURI(encodeURI(companyNameVar));
//			}
        	window.location.href="/eshop/task/saleOrBuyList.html?pageNo="+p+"&keyWord="+$("#keyWord").val()+"&type="+$("#leimuSelect").val();
        }
    });
  
    
    